home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Fun House 1
/
CD Fun House (Wayzata Technology).iso
/
•Games Parlour•
/
•Strategy•
/
Hex 1.0 ••••
/
Hex 1.0 ееее.rsrc
/
CODE_1.txt
< prev
next >
Wrap
Text File
|
1988-12-30
|
46KB
|
839 lines
# near model CODE resource
# jump table entries: 8-12 (5 of them)
label00000000:
00000000 0640 F840 addi.w D0, 0xF840
00000004 A9C9 syscall SysError
00000006 204F movea.l A0, A7
00000008 48E7 1800 movem.l -[A7], D3,D4
0000000C 260E move.l D3, A6
0000000E 2808 move.l D4, A0
00000010 6106 bsr +0x8 /* 00000018 */
00000012 4CDF 0018 movem.l D3,D4, [A7]+
00000016 4E75 rts
fn00000018:
00000018 2F0B move.l -[A7], A3
0000001A 242D FFB2 move.l D2, [A5 - 0x4E]
label0000001E:
0000001E 6604 bne +0x6 /* 00000024 */
00000020 265F movea.l A3, [A7]+
00000022 4E75 rts
label00000024:
00000024 2642 movea.l A3, D2
00000026 B7C3 cmpa.l A3, D3
00000028 6204 bhi +0x6 /* 0000002E */
0000002A B7C4 cmpa.l A3, D4
0000002C 6206 bhi +0x8 /* 00000034 */
label0000002E:
0000002E 242B 0000 move.l D2, [A3 + 0x0]
00000032 60EA bra -0x14 /* 0000001E */
label00000034:
00000034 4EBA 0148 jsr [PC + 0x148 /* 0000017E */]
00000038 4A2B 0006 tst.b [A3 + 0x6]
0000003C 6710 beq +0x12 /* 0000004E */
0000003E 41FA 0170 lea.l A0, [PC + 0x170 /* 000001B0, value 0x431, cstring "" */]
00000042 30AB 0012 move.w [A0], [A3 + 0x12]
00000046 41FA 0160 lea.l A0, [PC + 0x160 /* 000001A8, value 0x94C5350 '\tLSP', cstring "\ LSPTemp" */]
0000004A 4EBA 0104 jsr [PC + 0x104 /* 00000150 */]
label0000004E:
0000004E 242B 0000 move.l D2, [A3 + 0x0]
00000052 4EBA 001C jsr [PC + 0x1C /* 00000070 */]
00000056 4A82 tst.l D2
00000058 60C4 bra -0x3A /* 0000001E */
fn0000005A:
0000005A 2F00 move.l -[A7], D0
0000005C 200B move.l D0, A3
0000005E C0B8 031A and.l D0, [0x0000031A /* MaskBC/MaskHandle/MaskPtr/Lo3Bytes */]
00000062 276D FFB2 0000 move.l [A3 + 0x0], [A5 - 0x4E]
00000068 2B40 FFB2 move.l [A5 - 0x4E], D0
0000006C 201F move.l D0, [A7]+
0000006E 4E75 rts
fn00000070:
00000070 2F01 move.l -[A7], D1
00000072 220B move.l D1, A3
00000074 C2B8 031A and.l D1, [0x0000031A /* MaskBC/MaskHandle/MaskPtr/Lo3Bytes */]
00000078 43ED FFB2 lea.l A1, [A5 - 0x4E]
label0000007C:
0000007C 2011 move.l D0, [A1]
0000007E 6710 beq +0x12 /* 00000090 */
00000080 B081 cmp.l D0, D1
00000082 6704 beq +0x6 /* 00000088 */
00000084 2240 movea.l A1, D0
00000086 60F4 bra -0xA /* 0000007C */
label00000088:
00000088 2040 movea.l A0, D0
0000008A 2290 move.l [A1], [A0]
0000008C 221F move.l D1, [A7]+
0000008E 4E75 rts
label00000090:
00000090 303C F436 move.w D0, 0xF436
00000094 A9C9 syscall SysError
00000096 610A bsr +0xC /* 000000A2 */
00000098 6702 beq +0x4 /* 0000009C */
0000009A 4E75 rts
label0000009C:
0000009C 303C F437 move.w D0, 0xF437
000000A0 A9C9 syscall SysError
fn000000A2:
000000A2 48E7 4080 movem.l -[A7], D1,A0
000000A6 202D FFB2 move.l D0, [A5 - 0x4E]
000000AA 6710 beq +0x12 /* 000000BC */
000000AC 220B move.l D1, A3
000000AE C2B8 031A and.l D1, [0x0000031A /* MaskBC/MaskHandle/MaskPtr/Lo3Bytes */]
label000000B2:
000000B2 B081 cmp.l D0, D1
000000B4 670E beq +0x10 /* 000000C4 */
000000B6 2040 movea.l A0, D0
000000B8 2010 move.l D0, [A0]
000000BA 66F6 bne -0x8 /* 000000B2 */
label000000BC:
000000BC 4CDF 0102 movem.l D1,A0, [A7]+
000000C0 7000 moveq.l D0, 0x00
000000C2 4E75 rts
label000000C4:
000000C4 4CDF 0102 movem.l D1,A0, [A7]+
000000C8 7001 moveq.l D0, 0x01
000000CA 4E75 rts
000000CC 2F08 move.l -[A7], A0
000000CE 4FEF FFCE lea.l A7, [A7 - 0x32]
000000D2 42AF 000C clr.l [A7 + 0xC]
000000D6 2F48 0012 move.l [A7 + 0x12], A0
000000DA 426F 0016 clr.w [A7 + 0x16]
000000DE 426F 001A clr.w [A7 + 0x1A]
000000E2 41EB 0016 lea.l A0, [A3 + 0x16]
000000E6 2F48 001C move.l [A7 + 0x1C], A0
000000EA 204F movea.l A0, A7
000000EC A000 syscall Open/PBHOpen/HOpen
000000EE 376F 0018 0004 move.w [A3 + 0x4], [A7 + 0x18]
000000F4 4FEF 0032 lea.l A7, [A7 + 0x32]
000000F8 205F movea.l A0, [A7]+
000000FA 4A40 tst.w D0
000000FC 671A beq +0x1C /* 00000118 */
000000FE 0C40 FFD5 cmpi.w D0, 0xFFD5
00000102 6604 bne +0x6 /* 00000108 */
00000104 7001 moveq.l D0, 0x01
00000106 4E75 rts
label00000108:
00000108 0C40 FFE9 cmpi.w D0, 0xFFE9
0000010C 6600 FEF2 bne -0x10C /* 00000000 */
00000110 4A2B 0011 tst.b [A3 + 0x11]
00000114 6700 FEEA beq -0x114 /* 00000000 */
label00000118:
00000118 7000 moveq.l D0, 0x00
0000011A 4E75 rts
0000011C 2F08 move.l -[A7], A0
0000011E 4FEF FFCE lea.l A7, [A7 - 0x32]
00000122 42AF 000C clr.l [A7 + 0xC]
00000126 2F48 0012 move.l [A7 + 0x12], A0
0000012A 426F 0016 clr.w [A7 + 0x16]
0000012E 426F 001A clr.w [A7 + 0x1A]
00000132 204F movea.l A0, A7
00000134 A008 syscall Create/PBHCreate/HCreate
00000136 4FEF 0032 lea.l A7, [A7 + 0x32]
0000013A 205F movea.l A0, [A7]+
0000013C 4A40 tst.w D0
0000013E 670C beq +0xE /* 0000014C */
00000140 0C40 FFD0 cmpi.w D0, 0xFFD0
00000144 6600 FEBA bne -0x144 /* 00000000 */
00000148 7001 moveq.l D0, 0x01
0000014A 4E75 rts
label0000014C:
0000014C 7000 moveq.l D0, 0x00
0000014E 4E75 rts
fn00000150:
00000150 2F08 move.l -[A7], A0
00000152 4FEF FFCE lea.l A7, [A7 - 0x32]
00000156 42AF 000C clr.l [A7 + 0xC]
0000015A 2F48 0012 move.l [A7 + 0x12], A0
0000015E 426F 0016 clr.w [A7 + 0x16]
00000162 426F 001A clr.w [A7 + 0x1A]
00000166 204F movea.l A0, A7
00000168 A009 syscall Delete/PBHDelete/HDelete
0000016A 4FEF 0032 lea.l A7, [A7 + 0x32]
0000016E 205F movea.l A0, [A7]+
00000170 4A40 tst.w D0
00000172 6708 beq +0xA /* 0000017C */
00000174 4A2D FFAA tst.b [A5 - 0x56]
00000178 6700 FE86 beq -0x178 /* 00000000 */
label0000017C:
0000017C 4E75 rts
fn0000017E:
0000017E 4A2B 0011 tst.b [A3 + 0x11]
00000182 6622 bne +0x24 /* 000001A6 */
00000184 4FEF FFCE lea.l A7, [A7 - 0x32]
00000188 42AF 000C clr.l [A7 + 0xC]
0000018C 3F6B 0004 0018 move.w [A7 + 0x18], [A3 + 0x4]
00000192 204F movea.l A0, A7
00000194 A001 syscall Close
00000196 4FEF 0032 lea.l A7, [A7 + 0x32]
0000019A 4A40 tst.w D0
0000019C 6708 beq +0xA /* 000001A6 */
0000019E 4A2D FFAA tst.b [A5 - 0x56]
000001A2 6700 FE5C beq -0x1A2 /* 00000000 */
label000001A6:
000001A6 4E75 rts
000001A8 094C bchg A4, D4
000001AA 5350 subq.w [A0], 1
000001AC 5465 addq.w -[A5], 2
000001AE 6D70 blt +0x72 /* 00000220 */
000001B0 0000 0431 ori.b D0, 0x31 /* '1' */
000001B4 2E32 4100 move.l D7, [A2 + <<invalid base displacement size>> + D4]
label000001B8:
000001B8 2038 09D6 move.l D0, [0x000009D6 /* WindowList */]
label000001BC:
000001BC 6724 beq +0x26 /* 000001E2 */
000001BE 2040 movea.l A0, D0
000001C0 0C68 7FFF 006C cmpi.w [A0 + 0x6C], 0x7FFF
000001C6 6708 beq +0xA /* 000001D0 */
000001C8 0C68 7FFE 006C cmpi.w [A0 + 0x6C], 0x7FFE
000001CE 660C bne +0xE /* 000001DC */
label000001D0:
000001D0 4A28 006E tst.b [A0 + 0x6E]
000001D4 6706 beq +0x8 /* 000001DC */
000001D6 2F08 move.l -[A7], A0
000001D8 A916 syscall HideWindow
000001DA 60DC bra -0x22 /* 000001B8 */
label000001DC:
000001DC 2028 0090 move.l D0, [A0 + 0x90]
000001E0 60DA bra -0x24 /* 000001BC */
label000001E2:
000001E2 4E75 rts
export_3:
000001E4 207C 0000 0001 movea.l A0, 0x1
000001EA A03B syscall Delay
000001EC 4E75 rts
000001EE 0431 2E32 4100 subi.b [A1 + <<invalid base displacement size>> + D4], 0x32 /* '2' */
fn000001F4:
000001F4 536D FFE0 subq.w [A5 - 0x20], 1
000001F8 3B7C 0002 FFDE move.w [A5 - 0x22], 0x2
000001FE 426D FFD8 clr.w [A5 - 0x28]
00000202 42AD FFB2 clr.l [A5 - 0x4E]
00000206 426D FFAA clr.w [A5 - 0x56]
0000020A 3B7C 3030 FFA8 move.w [A5 - 0x58], 0x3030 /* '00' */
00000210 4EBA 0040 jsr [PC + 0x40 /* 00000252 */]
00000214 4EBA 0058 jsr [PC + 0x58 /* 0000026E */]
00000218 4EBA 00A0 jsr [PC + 0xA0 /* 000002BA */]
0000021C 4EBA 010E jsr [PC + 0x10E /* 0000032C */]
label00000220:
00000220 4EBA 0112 jsr [PC + 0x112 /* 00000334 */]
00000224 2C4D movea.l A6, A5
00000226 265F movea.l A3, [A7]+
00000228 4A1F tst.b [A7]+
0000022A 6724 beq +0x26 /* 00000250 */
0000022C 7600 moveq.l D3, 0x00
0000022E 362D 0020 move.w D3, [A5 + 0x20]
00000232 E18B lsl D3, 8
00000234 486D FE22 pea.l [A5 - 0x1DE]
00000238 A86E syscall InitGraf
0000023A A8FE syscall InitFonts
0000023C A912 syscall InitWindows
0000023E A930 syscall InitMenus
00000240 A9CC syscall TEInit
00000242 42A7 clr.l -[A7]
00000244 A97B syscall InitDialogs
00000246 204F movea.l A0, A7
00000248 91C3 sub.l A0, D3
0000024A A02D syscall SetApplLimit
0000024C 4EBA 0122 jsr [PC + 0x122 /* 00000370 */]
label00000250:
00000250 4ED3 jmp [A3]
fn00000252:
00000252 6146 bsr +0x48 /* 0000029A */
00000254 670A beq +0xC /* 00000260 */
00000256 6B10 bmi +0x12 /* 00000268 */
00000258 3B7C FFF9 FFAC move.w [A5 - 0x54], 0xFFF9
0000025E 4E75 rts
label00000260:
00000260 3B7C FFF7 FFAC move.w [A5 - 0x54], 0xFFF7
00000266 4E75 rts
label00000268:
00000268 426D FFAC clr.w [A5 - 0x54]
0000026C 4E75 rts
fn0000026E:
0000026E 612A bsr +0x2C /* 0000029A */
00000270 6710 beq +0x12 /* 00000282 */
00000272 6B1C bmi +0x1E /* 00000290 */
00000274 3B7C FFF7 FFAE move.w [A5 - 0x52], 0xFFF7
0000027A 3B7C FFF8 FFB0 move.w [A5 - 0x50], 0xFFF8
00000280 4E75 rts
label00000282:
00000282 3B7C FFF9 FFAE move.w [A5 - 0x52], 0xFFF9
00000288 3B7C FFFA FFB0 move.w [A5 - 0x50], 0xFFFA
0000028E 4E75 rts
label00000290:
00000290 426D FFAE clr.w [A5 - 0x52]
00000294 426D FFB0 clr.w [A5 - 0x50]
00000298 4E75 rts
fn0000029A:
0000029A 1038 0207 move.b D0, [0x00000207 /* SPPrint */]
0000029E 6616 bne +0x18 /* 000002B6 */
000002A0 1038 0291 move.b D0, [0x00000291 /* PortBUse */]
000002A4 6A04 bpl +0x6 /* 000002AA */
label000002A6:
000002A6 7000 moveq.l D0, 0x00
000002A8 4E75 rts
label000002AA:
000002AA 0200 000F andi.b D0, 0xF
000002AE 5300 subq.b D0, 1
000002B0 66F4 bne -0xA /* 000002A6 */
000002B2 70FF moveq.l D0, 0xFFFFFFFF
000002B4 4E75 rts
label000002B6:
000002B6 7001 moveq.l D0, 0x01
000002B8 4E75 rts
fn000002BA:
000002BA 47ED C098 lea.l A3, [A5 - 0x3F68]
000002BE 422B 0007 clr.b [A3 + 0x7]
000002C2 08EB 0001 0007 bset.b [A3 + 0x7], 0x1
000002C8 177C 0002 0011 move.b [A3 + 0x11], 0x2
000002CE 50EB 000E st [A3 + 0xE]
000002D2 51EB 0006 sf [A3 + 0x6]
000002D6 50EB 000C st [A3 + 0xC]
000002DA 51EB 000D sf [A3 + 0xD]
000002DE 42AB 0008 clr.l [A3 + 0x8]
000002E2 377C 0002 0014 move.w [A3 + 0x14], 0x2
000002E8 177C 000D 0010 move.b [A3 + 0x10], 0xD /* '\r' */
000002EE 4EBA FD6A jsr [PC - 0x296 /* 0000005A */]
000002F2 47ED BE76 lea.l A3, [A5 - 0x418A]
000002F6 422B 0007 clr.b [A3 + 0x7]
000002FA 08EB 0000 0007 bset.b [A3 + 0x7], 0x0
00000300 177C 0001 0011 move.b [A3 + 0x11], 0x1
00000306 50EB 000E st [A3 + 0xE]
0000030A 51EB 0006 sf [A3 + 0x6]
0000030E 51EB 000C sf [A3 + 0xC]
00000312 51EB 000D sf [A3 + 0xD]
00000316 42AB 0008 clr.l [A3 + 0x8]
0000031A 377C 0002 0014 move.w [A3 + 0x14], 0x2
00000320 177C 000D 0010 move.b [A3 + 0x10], 0xD /* '\r' */
00000326 4EBA FD32 jsr [PC - 0x2CE /* 0000005A */]
0000032A 4E75 rts
fn0000032C:
0000032C 31FC 000D 0A4A move.w [0x00000A4A /* FPState */], 0xD /* '\r' */
00000332 4E75 rts
fn00000334:
00000334 42AD FFA4 clr.l [A5 - 0x5C]
00000338 4E75 rts
fn0000033A:
0000033A 50ED FFAA st [A5 - 0x56]
0000033E 202D FFB2 move.l D0, [A5 - 0x4E]
label00000342:
00000342 660A bne +0xC /* 0000034E */
00000344 42AD FFB2 clr.l [A5 - 0x4E]
00000348 51ED FFAA sf [A5 - 0x56]
0000034C A9F4 syscall ExitToShell
label0000034E:
0000034E 2640 movea.l A3, D0
00000350 4EBA FE2C jsr [PC - 0x1D4 /* 0000017E */]
00000354 4A2B 0006 tst.b [A3 + 0x6]
00000358 6710 beq +0x12 /* 0000036A */
0000035A 41FA FE54 lea.l A0, [PC - 0x1AC /* 000001B0, value 0x431, cstring "" */]
0000035E 30AB 0012 move.w [A0], [A3 + 0x12]
00000362 41FA FE44 lea.l A0, [PC - 0x1BC /* 000001A8, value 0x94C5350 '\tLSP', cstring "\ LSPTemp" */]
00000366 4EBA FDE8 jsr [PC - 0x218 /* 00000150 */]
label0000036A:
0000036A 202B 0000 move.l D0, [A3 + 0x0]
0000036E 60D2 bra -0x2C /* 00000342 */
fn00000370:
00000370 4A38 028E tst.b [0x0000028E /* ROM85 */]
00000374 6A2A bpl +0x2C /* 000003A0 */
00000376 2078 0130 movea.l A0, [0x00000130 /* ApplLimit */]
0000037A 43F8 0114 lea.l A1, [0x00000114 /* HeapEnd */]
0000037E 2008 move.l D0, A0
00000380 9091 sub.l D0, [A1]
00000382 740C moveq.l D2, 0x0C
00000384 B082 cmp.l D0, D2
00000386 6516 bcs +0x18 /* 0000039E */
00000388 2251 movea.l A1, [A1]
0000038A 21C8 0114 move.l [0x00000114 /* HeapEnd */], A0
0000038E 2280 move.l [A1], D0
00000390 4211 clr.b [A1]
00000392 2278 02AA movea.l A1, [0x000002AA /* ApplZone */]
00000396 2288 move.l [A1], A0
00000398 2082 move.l [A0], D2
0000039A D1A9 000C add.l [A1 + 0xC], D0
label0000039E:
0000039E 4E75 rts
label000003A0:
000003A0 A063 syscall MaxApplZone
000003A2 4E75 rts
000003A4 0431 2E32 4100 subi.b [A1 + <<invalid base displacement size>> + D4], 0x32 /* '2' */
fn000003AA:
000003AA 225F movea.l A1, [A7]+
000003AC 201F move.l D0, [A7]+
000003AE 2F09 move.l -[A7], A1
000003B0 A032 syscall FlushEvents
000003B2 4E75 rts
000003B4 2F78 02F0 0004 move.l [A7 + 0x4], [0x000002F0 /* DoubleTime */]
000003BA 4E75 rts
000003BC 2F78 02F4 0004 move.l [A7 + 0x4], [0x000002F4 /* CaretTime */]
000003C2 4E75 rts
000003C4 A02C syscall InitApplZone
000003C6 4EFA 019C jmp [PC + 0x19C /* 00000564 */]
000003CA 225F movea.l A1, [A7]+
000003CC 205F movea.l A0, [A7]+
000003CE A057 syscall SetAppBase/SetApplBase
000003D0 4EFA 0190 jmp [PC + 0x190 /* 00000562 */]
000003D4 225F movea.l A1, [A7]+
000003D6 204F movea.l A0, A7
000003D8 A019 syscall InitZone
000003DA DEFC 000E add.w A7, 0xE
000003DE 4EFA 0182 jmp [PC + 0x182 /* 00000562 */]
000003E2 225F movea.l A1, [A7]+
000003E4 205F movea.l A0, [A7]+
000003E6 A02D syscall SetApplLimit
000003E8 4EFA 0178 jmp [PC + 0x178 /* 00000562 */]
000003EC A036 syscall MoreMasters
000003EE 4EFA 0174 jmp [PC + 0x174 /* 00000564 */]
000003F2 A11A syscall GetZone, flags=1
000003F4 2F48 0004 move.l [A7 + 0x4], A0
000003F8 4EFA 016A jmp [PC + 0x16A /* 00000564 */]
000003FC 225F movea.l A1, [A7]+
000003FE 205F movea.l A0, [A7]+
00000400 A01B syscall SetZone
00000402 4EFA 015E jmp [PC + 0x15E /* 00000562 */]
00000406 2F78 02A6 0004 move.l [A7 + 0x4], [0x000002A6 /* SysZone */]
0000040C 4EFA 015C jmp [PC + 0x15C /* 0000056A */]
00000410 2F78 02AA 0004 move.l [A7 + 0x4], [0x000002AA /* ApplZone */]
00000416 4EFA 0152 jmp [PC + 0x152 /* 0000056A */]
0000041A 225F movea.l A1, [A7]+
0000041C 201F move.l D0, [A7]+
0000041E A122 syscall NewHandle, flags=1
00000420 2E88 move.l [A7], A0
00000422 4EFA 013E jmp [PC + 0x13E /* 00000562 */]
00000426 225F movea.l A1, [A7]+
00000428 205F movea.l A0, [A7]+
0000042A A023 syscall DisposHandle/DisposeHandle
0000042C 4EFA 0134 jmp [PC + 0x134 /* 00000562 */]
00000430 225F movea.l A1, [A7]+
00000432 205F movea.l A0, [A7]+
00000434 A025 syscall GetHandleSize
00000436 2E80 move.l [A7], D0
00000438 6A06 bpl +0x8 /* 00000440 */
0000043A 4297 clr.l [A7]
0000043C 4EFA 0124 jmp [PC + 0x124 /* 00000562 */]
label00000440:
00000440 4EFA 011E jmp [PC + 0x11E /* 00000560 */]
00000444 225F movea.l A1, [A7]+
00000446 201F move.l D0, [A7]+
00000448 205F movea.l A0, [A7]+
0000044A A024 syscall SetHandleSize
0000044C 4EFA 0114 jmp [PC + 0x114 /* 00000562 */]
00000450 225F movea.l A1, [A7]+
00000452 205F movea.l A0, [A7]+
00000454 A126 syscall HandleZone, flags=1
00000456 2E88 move.l [A7], A0
00000458 4EFA 0108 jmp [PC + 0x108 /* 00000562 */]
0000045C 225F movea.l A1, [A7]+
0000045E 205F movea.l A0, [A7]+
00000460 A128 syscall RecoverHandle, flags=1
00000462 2E88 move.l [A7], A0
00000464 4EFA 00FA jmp [PC + 0xFA /* 00000560 */]
00000468 225F movea.l A1, [A7]+
0000046A 201F move.l D0, [A7]+
0000046C 205F movea.l A0, [A7]+
0000046E A027 syscall ReallocateHandle
00000470 4EFA 00F0 jmp [PC + 0xF0 /* 00000562 */]
00000474 225F movea.l A1, [A7]+
00000476 201F move.l D0, [A7]+
00000478 A11E syscall NewPtr, flags=1
0000047A 2E88 move.l [A7], A0
0000047C 4EFA 00E4 jmp [PC + 0xE4 /* 00000562 */]
00000480 225F movea.l A1, [A7]+
00000482 205F movea.l A0, [A7]+
00000484 A01F syscall DisposPtr/DisposePtr
00000486 4EFA 00DA jmp [PC + 0xDA /* 00000562 */]
0000048A 225F movea.l A1, [A7]+
0000048C 205F movea.l A0, [A7]+
0000048E A021 syscall GetPtrSize
00000490 2E80 move.l [A7], D0
00000492 6A06 bpl +0x8 /* 0000049A */
00000494 4297 clr.l [A7]
00000496 4EFA 00CA jmp [PC + 0xCA /* 00000562 */]
label0000049A:
0000049A 4EFA 00C4 jmp [PC + 0xC4 /* 00000560 */]
0000049E 225F movea.l A1, [A7]+
000004A0 201F move.l D0, [A7]+
000004A2 205F movea.l A0, [A7]+
000004A4 A020 syscall SetPtrSize
000004A6 4EFA 00BA jmp [PC + 0xBA /* 00000562 */]
000004AA 225F movea.l A1, [A7]+
000004AC 205F movea.l A0, [A7]+
000004AE A148 syscall PtrZone, flags=1
000004B0 2E88 move.l [A7], A0
000004B2 4EFA 00AE jmp [PC + 0xAE /* 00000562 */]
000004B6 A01C syscall FreeMem
000004B8 2F40 0004 move.l [A7 + 0x4], D0
000004BC 4EFA 00AC jmp [PC + 0xAC /* 0000056A */]
000004C0 225F movea.l A1, [A7]+
000004C2 A11D syscall MaxMem, flags=1
000004C4 2208 move.l D1, A0
000004C6 205F movea.l A0, [A7]+
000004C8 2081 move.l [A0], D1
000004CA 2E80 move.l [A7], D0
000004CC 4EFA 0092 jmp [PC + 0x92 /* 00000560 */]
000004D0 225F movea.l A1, [A7]+
000004D2 201F move.l D0, [A7]+
000004D4 A04C syscall CompactMem
000004D6 2E80 move.l [A7], D0
000004D8 4EFA 0086 jmp [PC + 0x86 /* 00000560 */]
000004DC 225F movea.l A1, [A7]+
000004DE 201F move.l D0, [A7]+
000004E0 A040 syscall ResrvMem/ReserveMem
000004E2 4EFA 007E jmp [PC + 0x7E /* 00000562 */]
000004E6 225F movea.l A1, [A7]+
000004E8 201F move.l D0, [A7]+
000004EA A04D syscall PurgeMem
000004EC 4EFA 0074 jmp [PC + 0x74 /* 00000562 */]
000004F0 225F movea.l A1, [A7]+
000004F2 205F movea.l A0, [A7]+
000004F4 A02B syscall EmptyHandle
000004F6 4EFA 006A jmp [PC + 0x6A /* 00000562 */]
export_5:
fn000004FA:
000004FA 225F movea.l A1, [A7]+
000004FC 205F movea.l A0, [A7]+
000004FE A029 syscall HLock
00000500 4EFA 0060 jmp [PC + 0x60 /* 00000562 */]
export_4:
fn00000504:
00000504 225F movea.l A1, [A7]+
00000506 205F movea.l A0, [A7]+
00000508 A02A syscall HUnlock
0000050A 4EFA 0056 jmp [PC + 0x56 /* 00000562 */]
0000050E 225F movea.l A1, [A7]+
00000510 205F movea.l A0, [A7]+
00000512 A049 syscall HPurge
00000514 4EFA 004C jmp [PC + 0x4C /* 00000562 */]
00000518 225F movea.l A1, [A7]+
0000051A 205F movea.l A0, [A7]+
0000051C A04A syscall HNoPurge
0000051E 4EFA 0042 jmp [PC + 0x42 /* 00000562 */]
00000522 225F movea.l A1, [A7]+
00000524 205F movea.l A0, [A7]+
00000526 A04B syscall SetGrowZone
00000528 4EFA 0038 jmp [PC + 0x38 /* 00000562 */]
0000052C 2F78 0328 0004 move.l [A7 + 0x4], [0x00000328 /* GZRootHnd */]
00000532 4E75 rts
00000534 221F move.l D1, [A7]+
00000536 201F move.l D0, [A7]+
00000538 225F movea.l A1, [A7]+
0000053A 205F movea.l A0, [A7]+
0000053C A02E syscall BlockMove/BlockMoveData
0000053E 2241 movea.l A1, D1
00000540 4EFA 0020 jmp [PC + 0x20 /* 00000562 */]
00000544 2F78 0108 0004 move.l [A7 + 0x4], [0x00000108 /* MemTop */]
0000054A 4EFA 001E jmp [PC + 0x1E /* 0000056A */]
0000054E 3F78 0220 0004 move.w [A7 + 0x4], [0x00000220 /* MemErr */]
00000554 4E75 rts
00000556 2F78 0130 0004 move.l [A7 + 0x4], [0x00000130 /* ApplLimit */]
0000055C 4EFA 000C jmp [PC + 0xC /* 0000056A */]
label00000560:
00000560 7000 moveq.l D0, 0x00
label00000562:
00000562 2F09 move.l -[A7], A1
label00000564:
00000564 31C0 0220 move.w [0x00000220 /* MemErr */], D0
00000568 4E75 rts
label0000056A:
0000056A 7000 moveq.l D0, 0x00
0000056C 60F6 bra -0x8 /* 00000564 */
export_2:
0000056E 50E7 st -[A7]
00000570 4EBA FC82 jsr [PC - 0x37E /* 000001F4 */]
00000574 4E56 FFF0 link A6, -0x0010
00000578 3F3C FFFF move.w -[A7], 0xFFFF
0000057C 4267 clr.w -[A7]
0000057E 4EBA FE2A jsr [PC - 0x1D6 /* 000003AA */]
00000582 4EAD 0072 jsr [A5 + 0x72 /* export_10 */]
00000586 41ED 0072 lea.l A0, [A5 + 0x72 /* export_10 */]
0000058A 2F08 move.l -[A7], A0
0000058C A9F1 syscall UnloadSeg
0000058E 4EAD 0062 jsr [A5 + 0x62 /* export_8 */]
00000592 A850 syscall InitCursor
00000594 4EBA 0030 jsr [PC + 0x30 /* 000005C6 */]
00000598 4EAD 0052 jsr [A5 + 0x52 /* export_6 */]
0000059C 4E5E unlink A6
0000059E 4EBA FD9A jsr [PC - 0x266 /* 0000033A */]
000005A2 4E5E unlink A6
000005A4 4E75 rts
000005A6 4D41 chk.w D6, D1
000005A8 494E chk.w D4, A6
000005AA 2020 move.l D0, -[A0]
000005AC 2020 move.l D0, -[A0]
000005AE 4E56 FFE8 link A6, -0x0018
000005B2 4E71 nop
000005B4 4E71 nop
000005B6 4E5E unlink A6
000005B8 205F movea.l A0, [A7]+
000005BA 584F addq.w A7, 4
000005BC 4ED0 jmp [A0]
000005BE 5245 addq.w D5, 1
000005C0 4652 not.w [A2]
000005C2 4553 chk.w D2, [A3]
000005C4 4844 swap.w D4
export_1:
fn000005C6:
000005C6 4E56 FEBC link A6, -0x0144
000005CA 4E71 nop
000005CC 4E71 nop
000005CE 422E FFEF clr.b [A6 - 0x11]
000005D2 594F subq.w A7, 4
000005D4 3F3C 0002 move.w -[A7], 0x2
000005D8 42A7 clr.l -[A7]
000005DA 70FF moveq.l D0, 0xFFFFFFFF
000005DC 2F00 move.l -[A7], D0
000005DE A97C syscall GetNewDialog
000005E0 2D5F FFEA move.l [A6 - 0x16], [A7]+
000005E4 2F2E FFEA move.l -[A7], [A6 - 0x16]
000005E8 A915 syscall ShowWindow
000005EA 2F2E FFEA move.l -[A7], [A6 - 0x16]
000005EE A91F syscall SelectWindow
000005F0 2F2E FFEA move.l -[A7], [A6 - 0x16]
000005F4 A873 syscall SetPort
000005F6 2D6E FFEA FEBC move.l [A6 - 0x144], [A6 - 0x16]
000005FC 206E FEBC movea.l A0, [A6 - 0x144]
00000600 2008 move.l D0, A0
00000602 6602 bne +0x4 /* 00000606 */
00000604 4E40 trap 0
label00000606:
00000606 2D68 00A0 FEC0 move.l [A6 - 0x140], [A0 + 0xA0]
0000060C 2F2E FEC0 move.l -[A7], [A6 - 0x140]
00000610 4EBA FEE8 jsr [PC - 0x118 /* 000004FA */]
00000614 206E FEC0 movea.l A0, [A6 - 0x140]
00000618 2008 move.l D0, A0
0000061A 6602 bne +0x4 /* 0000061E */
0000061C 4E40 trap 0
label0000061E:
0000061E 2050 movea.l A0, [A0]
00000620 2008 move.l D0, A0
00000622 6602 bne +0x4 /* 00000626 */
00000624 4E40 trap 0
label00000626:
00000626 4268 0050 clr.w [A0 + 0x50]
0000062A 4267 clr.w -[A7]
0000062C A88A syscall TextSize
0000062E 206E FEC0 movea.l A0, [A6 - 0x140]
00000632 2008 move.l D0, A0
00000634 6602 bne +0x4 /* 00000638 */
00000636 4E40 trap 0
label00000638:
00000638 2050 movea.l A0, [A0]
0000063A 2008 move.l D0, A0
0000063C 6602 bne +0x4 /* 00000640 */
0000063E 4E40 trap 0
label00000640:
00000640 4268 004A clr.w [A0 + 0x4A]
00000644 4267 clr.w -[A7]
00000646 A887 syscall TextFont
00000648 206E FEC0 movea.l A0, [A6 - 0x140]
0000064C 2008 move.l D0, A0
0000064E 6602 bne +0x4 /* 00000652 */
00000650 4E40 trap 0
label00000652:
00000652 2050 movea.l A0, [A0]
00000654 2008 move.l D0, A0
00000656 6602 bne +0x4 /* 0000065A */
00000658 4E40 trap 0
label0000065A:
0000065A 4268 004A clr.w [A0 + 0x4A]
0000065E 206E FEC0 movea.l A0, [A6 - 0x140]
00000662 2008 move.l D0, A0
00000664 6602 bne +0x4 /* 00000668 */
00000666 4E40 trap 0
label00000668:
00000668 2050 movea.l A0, [A0]
0000066A 2008 move.l D0, A0
0000066C 6602 bne +0x4 /* 00000670 */
0000066E 4E40 trap 0
label00000670:
00000670 317C 000C 001A move.w [A0 + 0x1A], 0xC
00000676 206E FEC0 movea.l A0, [A6 - 0x140]
0000067A 2008 move.l D0, A0
0000067C 6602 bne +0x4 /* 00000680 */
0000067E 4E40 trap 0
label00000680:
00000680 2050 movea.l A0, [A0]
00000682 2008 move.l D0, A0
00000684 6602 bne +0x4 /* 00000688 */
00000686 4E40 trap 0
label00000688:
00000688 317C 0010 0018 move.w [A0 + 0x18], 0x10
0000068E 2F2E FEC0 move.l -[A7], [A6 - 0x140]
00000692 4EBA FE70 jsr [PC - 0x190 /* 00000504 */]
00000696 422D FD57 clr.b [A5 - 0x2A9]
label0000069A:
0000069A 42A7 clr.l -[A7]
0000069C 486E FED0 pea.l [A6 - 0x130]
000006A0 A991 syscall ModalDialog
000006A2 2F2E FFEA move.l -[A7], [A6 - 0x16]
000006A6 302E FED0 move.w D0, [A6 - 0x130]
000006AA 5340 subq.w D0, 1
000006AC 4E76 trapv
000006AE 5240 addq.w D0, 1
000006B0 3F00 move.w -[A7], D0
000006B2 486E FFE0 pea.l [A6 - 0x20]
000006B6 486E FFDA pea.l [A6 - 0x26]
000006BA 486E FFE2 pea.l [A6 - 0x1E]
000006BE A98D syscall GetDialogItem/GetDItem
000006C0 2D6E FFDA FFD6 move.l [A6 - 0x2A], [A6 - 0x26]
000006C6 0C6E 0001 FED0 cmpi.w [A6 - 0x130], 0x1
000006CC 6600 0008 bne +0xA /* 000006D6 */
000006D0 1B7C 0001 FD57 move.b [A5 - 0x2A9], 0x1
label000006D6:
000006D6 0C6E 0002 FED0 cmpi.w [A6 - 0x130], 0x2
000006DC 6600 000E bne +0x10 /* 000006EC */
000006E0 1D7C 0001 FFEF move.b [A6 - 0x11], 0x1
000006E6 1B7C 0001 FD57 move.b [A5 - 0x2A9], 0x1
label000006EC:
000006EC 4A2D FD57 tst.b [A5 - 0x2A9]
000006F0 67A8 beq -0x56 /* 0000069A */
000006F2 2F2E FFEA move.l -[A7], [A6 - 0x16]
000006F6 A983 syscall DisposeDialog
000006F8 4A2E FFEF tst.b [A6 - 0x11]
000006FC 6700 0006 beq +0x8 /* 00000704 */
00000700 4EBA 0026 jsr [PC + 0x26 /* 00000728 */]
label00000704:
00000704 4E5E unlink A6
00000706 4E75 rts
00000708 4441 neg.w D1
0000070A 424F clr.w A7
0000070C 5554 subq.w [A4], 2
0000070E 4845 swap.w D5
00000710 4E56 FFE8 link A6, -0x0018
00000714 4E71 nop
00000716 4E71 nop
00000718 4E5E unlink A6
0000071A 205F movea.l A0, [A7]+
0000071C 584F addq.w A7, 4
0000071E 4ED0 jmp [A0]
00000720 5245 addq.w D5, 1
00000722 4652 not.w [A2]
00000724 4553 chk.w D2, [A3]
00000726 4844 swap.w D4
fn00000728:
00000728 4E56 FEBC link A6, -0x0144
0000072C 4E71 nop
0000072E 4E71 nop
00000730 422E FFEF clr.b [A6 - 0x11]
00000734 594F subq.w A7, 4
00000736 3F3C 0004 move.w -[A7], 0x4
0000073A 42A7 clr.l -[A7]
0000073C 70FF moveq.l D0, 0xFFFFFFFF
0000073E 2F00 move.l -[A7], D0
00000740 A97C syscall GetNewDialog
00000742 2D5F FFEA move.l [A6 - 0x16], [A7]+
00000746 2F2E FFEA move.l -[A7], [A6 - 0x16]
0000074A A915 syscall ShowWindow
0000074C 2F2E FFEA move.l -[A7], [A6 - 0x16]
00000750 A91F syscall SelectWindow
00000752 2F2E FFEA move.l -[A7], [A6 - 0x16]
00000756 A873 syscall SetPort
00000758 2D6E FFEA FEBC move.l [A6 - 0x144], [A6 - 0x16]
0000075E 206E FEBC movea.l A0, [A6 - 0x144]
00000762 2008 move.l D0, A0
00000764 6602 bne +0x4 /* 00000768 */
00000766 4E40 trap 0
label00000768:
00000768 2D68 00A0 FEC0 move.l [A6 - 0x140], [A0 + 0xA0]
0000076E 2F2E FEC0 move.l -[A7], [A6 - 0x140]
00000772 4EBA FD86 jsr [PC - 0x27A /* 000004FA */]
00000776 206E FEC0 movea.l A0, [A6 - 0x140]
0000077A 2008 move.l D0, A0
0000077C 6602 bne +0x4 /* 00000780 */
0000077E 4E40 trap 0
label00000780:
00000780 2050 movea.l A0, [A0]
00000782 2008 move.l D0, A0
00000784 6602 bne +0x4 /* 00000788 */
00000786 4E40 trap 0
label00000788:
00000788 317C 000C 0050 move.w [A0 + 0x50], 0xC
0000078E 3F3C 000C move.w -[A7], 0xC
00000792 A88A syscall TextSize
00000794 206E FEC0 movea.l A0, [A6 - 0x140]
00000798 2008 move.l D0, A0
0000079A 6602 bne +0x4 /* 0000079E */
0000079C 4E40 trap 0
label0000079E:
0000079E 2050 movea.l A0, [A0]
000007A0 2008 move.l D0, A0
000007A2 6602 bne +0x4 /* 000007A6 */
000007A4 4E40 trap 0
label000007A6:
000007A6 4268 004A clr.w [A0 + 0x4A]
000007AA 4267 clr.w -[A7]
000007AC A887 syscall TextFont
000007AE 206E FEC0 movea.l A0, [A6 - 0x140]
000007B2 2008 move.l D0, A0
000007B4 6602 bne +0x4 /* 000007B8 */
000007B6 4E40 trap 0
label000007B8:
000007B8 2050 movea.l A0, [A0]
000007BA 2008 move.l D0, A0
000007BC 6602 bne +0x4 /* 000007C0 */
000007BE 4E40 trap 0
label000007C0:
000007C0 4268 004A clr.w [A0 + 0x4A]
000007C4 206E FEC0 movea.l A0, [A6 - 0x140]
000007C8 2008 move.l D0, A0
000007CA 6602 bne +0x4 /* 000007CE */
000007CC 4E40 trap 0
label000007CE:
000007CE 2050 movea.l A0, [A0]
000007D0 2008 move.l D0, A0
000007D2 6602 bne +0x4 /* 000007D6 */
000007D4 4E40 trap 0
label000007D6:
000007D6 317C 000C 001A move.w [A0 + 0x1A], 0xC
000007DC 206E FEC0 movea.l A0, [A6 - 0x140]
000007E0 2008 move.l D0, A0
000007E2 6602 bne +0x4 /* 000007E6 */
000007E4 4E40 trap 0
label000007E6:
000007E6 2050 movea.l A0, [A0]
000007E8 2008 move.l D0, A0
000007EA 6602 bne +0x4 /* 000007EE */
000007EC 4E40 trap 0
label000007EE:
000007EE 317C 0010 0018 move.w [A0 + 0x18], 0x10
000007F4 2F2E FEC0 move.l -[A7], [A6 - 0x140]
000007F8 4EBA FD0A jsr [PC - 0x2F6 /* 00000504 */]
000007FC 422D FD57 clr.b [A5 - 0x2A9]
label00000800:
00000800 42A7 clr.l -[A7]
00000802 486E FED0 pea.l [A6 - 0x130]
00000806 A991 syscall ModalDialog
00000808 2F2E FFEA move.l -[A7], [A6 - 0x16]
0000080C 302E FED0 move.w D0, [A6 - 0x130]
00000810 5340 subq.w D0, 1
00000812 4E76 trapv
00000814 5240 addq.w D0, 1
00000816 3F00 move.w -[A7], D0
00000818 486E FFE0 pea.l [A6 - 0x20]
0000081C 486E FFDA pea.l [A6 - 0x26]
00000820 486E FFE2 pea.l [A6 - 0x1E]
00000824 A98D syscall GetDialogItem/GetDItem
00000826 2D6E FFDA FFD6 move.l [A6 - 0x2A], [A6 - 0x26]
0000082C 0C6E 0001 FED0 cmpi.w [A6 - 0x130], 0x1
00000832 6600 0008 bne +0xA /* 0000083C */
00000836 1B7C 0001 FD57 move.b [A5 - 0x2A9], 0x1
label0000083C:
0000083C 0C6E 0002 FED0 cmpi.w [A6 - 0x130], 0x2
00000842 6600 000E bne +0x10 /* 00000852 */
00000846 1D7C 0001 FFEF move.b [A6 - 0x11], 0x1
0000084C 1B7C 0001 FD57 move.b [A5 - 0x2A9], 0x1
label00000852:
00000852 4A2D FD57 tst.b [A5 - 0x2A9]
00000856 67A8 beq -0x56 /* 00000800 */
00000858 2F2E FFEA move.l -[A7], [A6 - 0x16]
0000085C A983 syscall DisposeDialog
0000085E 4A2E FFEF tst.b [A6 - 0x11]
00000862 6700 0006 beq +0x8 /* 0000086A */
00000866 4EBA FD5E jsr [PC - 0x2A2 /* 000005C6 */]
label0000086A:
0000086A 4E5E unlink A6
0000086C 4E75 rts
0000086E 4441 neg.w D1
00000870 424F clr.w A7
00000872 5554 subq.w [A4], 2
00000874 3220 move.w D1, -[A0]